package com.sky.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;


@Configuration       // 注册WebSocket配置
public class WebSocketConfiguration {

    @Bean
    public ServerEndpointExporter getWebSocketServer() {
        return new ServerEndpointExporter();
    }
}
